<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/doc/src/qsizepolicy.qdoc -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QSizePolicy</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QSizePolicy</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qsizepolicy.html">QSizePolicy class reference</a></li></ul></p>
<h3>Public Types</h3>
<ul>
<li><div class="fn"/>enum <b><a href="qsizepolicy-qt3.html#ExpandData-enum">ExpandData</a></b> { NoDirection, Horizontally, Vertically, BothDirections }</li>
<li><div class="fn"/>typedef <b><a href="qsizepolicy-qt3.html#SizeType-typedef">SizeType</a></b></li>
</ul>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qsizepolicy-qt3.html#QSizePolicy-4">QSizePolicy</a></b> ( Policy <i>horizontal</i>, Policy <i>vertical</i>, bool <i>dependent</i> )</li>
<li><div class="fn"/><b><a href="qsizepolicy-qt3.html#QSizePolicy-5">QSizePolicy</a></b> ( Policy <i>horizontal</i>, Policy <i>vertical</i>, uchar <i>horizontalStretch</i>, uchar <i>verticalStretch</i>, bool <i>dependent</i> = false )</li>
<li><div class="fn"/>Qt::Orientations <b><a href="qsizepolicy-qt3.html#expanding">expanding</a></b> () const</li>
<li><div class="fn"/>Policy <b><a href="qsizepolicy-qt3.html#horData">horData</a></b> () const</li>
<li><div class="fn"/>uint <b><a href="qsizepolicy-qt3.html#horStretch">horStretch</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qsizepolicy-qt3.html#mayGrowHorizontally">mayGrowHorizontally</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qsizepolicy-qt3.html#mayGrowVertically">mayGrowVertically</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qsizepolicy-qt3.html#mayShrinkHorizontally">mayShrinkHorizontally</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qsizepolicy-qt3.html#mayShrinkVertically">mayShrinkVertically</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qsizepolicy-qt3.html#setHorData">setHorData</a></b> ( Policy <i>policy</i> )</li>
<li><div class="fn"/>void <b><a href="qsizepolicy-qt3.html#setHorStretch">setHorStretch</a></b> ( uchar <i>stretch</i> )</li>
<li><div class="fn"/>void <b><a href="qsizepolicy-qt3.html#setVerData">setVerData</a></b> ( Policy <i>policy</i> )</li>
<li><div class="fn"/>void <b><a href="qsizepolicy-qt3.html#setVerStretch">setVerStretch</a></b> ( uchar <i>stretch</i> )</li>
<li><div class="fn"/>Policy <b><a href="qsizepolicy-qt3.html#verData">verData</a></b> () const</li>
<li><div class="fn"/>uint <b><a href="qsizepolicy-qt3.html#verStretch">verStretch</a></b> () const</li>
</ul>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="ExpandData-enum"></a>enum QSizePolicy::ExpandData</h3>
<p>Use the <a href="qt.html#Orientation-enum">Qt::Orientations</a> enum instead.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QSizePolicy::NoDirection</tt></td><td align="center" valign="top"><tt>0x0</tt></td><td valign="top">Use 0 instead.</td></tr>
<tr><td valign="top"><tt>QSizePolicy::Horizontally</tt></td><td align="center" valign="top"><tt>0x1</tt></td><td valign="top">Use <a href="qt.html#Orientation-enum">Qt::Horizontal</a> instead.</td></tr>
<tr><td valign="top"><tt>QSizePolicy::Vertically</tt></td><td align="center" valign="top"><tt>0x2</tt></td><td valign="top">Use <a href="qt.html#Orientation-enum">Qt::Vertical</a> instead.</td></tr>
<tr><td valign="top"><tt>QSizePolicy::BothDirections</tt></td><td align="center" valign="top"><tt>0x3</tt></td><td valign="top">Use <a href="qt.html#Orientation-enum">Qt::Horizontal</a> | <a href="qt.html#Orientation-enum">Qt::Vertical</a> instead.</td></tr>
</table></p>
<h3 class="fn"><a name="SizeType-typedef"></a>typedef QSizePolicy::SizeType</h3>
<p>Use the <a href="qsizepolicy.html#Policy-enum">QSizePolicy::Policy</a> enum instead.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QSizePolicy-4"></a>QSizePolicy::QSizePolicy ( <a href="qsizepolicy.html#Policy-enum">Policy</a> <i>horizontal</i>, <a href="qsizepolicy.html#Policy-enum">Policy</a> <i>vertical</i>, bool <i>dependent</i> )</h3>
<p>Use the <a href="qsizepolicy.html#QSizePolicy">QSizePolicy</a>() constructor and the <a href="qsizepolicy.html#setHeightForWidth">setHeightForWidth</a>() function instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> QSizePolicy *policy = new QSizePolicy(horizontal, vertical, dependent);</font></pre>
<p>you can rewrite it as</p>
<pre> QSizePolicy *policy = new QSizePolicy(horizontal, vertical);
 policy-&gt;setHeightForWidth(dependent);</pre>
<h3 class="fn"><a name="QSizePolicy-5"></a>QSizePolicy::QSizePolicy ( <a href="qsizepolicy.html#Policy-enum">Policy</a> <i>horizontal</i>, <a href="qsizepolicy.html#Policy-enum">Policy</a> <i>vertical</i>, <a href="qtglobal.html#uchar-typedef">uchar</a> <i>horizontalStretch</i>, <a href="qtglobal.html#uchar-typedef">uchar</a> <i>verticalStretch</i>, bool <i>dependent</i> = false )</h3>
<p>Use the <a href="qsizepolicy.html#QSizePolicy">QSizePolicy</a>() constructor and call the <a href="qsizepolicy.html#setHorizontalStretch">setHorizontalStretch</a>(), <a href="qsizepolicy.html#setVerticalStretch">setVerticalStretch</a>(), and <a href="qsizepolicy.html#setHeightForWidth">setHeightForWidth</a>() functions instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> QSizePolicy *policy = new QSizePolicy(horizontal, vertical,
                                                          horizontalStretch, verticalStretch,
                                                          dependent);</font></pre>
<p>you can rewrite it as</p>
<pre> QSizePolicy *policy = new QSizePolicy(horizontal, vertical);
 policy-&gt;setHorizontalStretch(horizontalStretch);
 policy-&gt;setVerticalStretch(verticalStretch);
 policy-&gt;setHeightForWidth(dependent);</pre>
<h3 class="fn"><a name="expanding"></a><a href="qt.html#Orientation-enum">Qt::Orientations</a> QSizePolicy::expanding () const</h3>
<p>Use <a href="qsizepolicy.html#expandingDirections">expandingDirections</a>() instead.</p>
<h3 class="fn"><a name="horData"></a><a href="qsizepolicy.html#Policy-enum">Policy</a> QSizePolicy::horData () const</h3>
<p>Use <a href="qsizepolicy.html#horizontalPolicy">horizontalPolicy</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#setHorData">setHorData</a>().</p>
<h3 class="fn"><a name="horStretch"></a><a href="qtglobal.html#uint-typedef">uint</a> QSizePolicy::horStretch () const</h3>
<p>Use <a href="qsizepolicy.html#horizontalStretch">horizontalStretch</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#setHorStretch">setHorStretch</a>().</p>
<h3 class="fn"><a name="mayGrowHorizontally"></a>bool QSizePolicy::mayGrowHorizontally () const</h3>
<p>Use the <a href="qsizepolicy.html#horizontalPolicy">horizontalPolicy</a>() function combined with the <a href="qsizepolicy.html#PolicyFlag-enum">QSizePolicy::PolicyFlag</a> enum instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool policy = mayGrowHorizontally();</font></pre>
<p>you can rewrite it as</p>
<pre> bool policy = horizontalPolicy() &amp; QSizePolicy::GrowFlag;</pre>
<h3 class="fn"><a name="mayGrowVertically"></a>bool QSizePolicy::mayGrowVertically () const</h3>
<p>Use the <a href="qsizepolicy.html#verticalPolicy">verticalPolicy</a>() function combined with the <a href="qsizepolicy.html#PolicyFlag-enum">QSizePolicy::PolicyFlag</a> enum instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool policy = mayGrowVertically();</font></pre>
<p>you can rewrite it as</p>
<pre> bool policy = verticalPolicy() &amp; QSizePolicy::GrowFlag;</pre>
<h3 class="fn"><a name="mayShrinkHorizontally"></a>bool QSizePolicy::mayShrinkHorizontally () const</h3>
<p>Use the <a href="qsizepolicy.html#horizontalPolicy">horizontalPolicy</a>() function combined with the <a href="qsizepolicy.html#PolicyFlag-enum">QSizePolicy::PolicyFlag</a> enum instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool policy = mayShrinkHorizontally();</font></pre>
<p>you can rewrite it as</p>
<pre> bool policy = horizontalPolicy() &amp; QSizePolicy::ShrinkFlag;</pre>
<h3 class="fn"><a name="mayShrinkVertically"></a>bool QSizePolicy::mayShrinkVertically () const</h3>
<p>Use the <a href="qsizepolicy.html#verticalPolicy">verticalPolicy</a>() function combined with the <a href="qsizepolicy.html#PolicyFlag-enum">QSizePolicy::PolicyFlag</a> enum instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> bool policy = mayShrinkVertically();</font></pre>
<p>you can rewrite it as</p>
<pre> bool policy = verticalPolicy() &amp; QSizePolicy::ShrinkFlag;</pre>
<h3 class="fn"><a name="setHorData"></a>void QSizePolicy::setHorData ( <a href="qsizepolicy.html#Policy-enum">Policy</a> <i>policy</i> )</h3>
<p>Use <a href="qsizepolicy.html#setHorizontalPolicy">setHorizontalPolicy</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#horData">horData</a>().</p>
<h3 class="fn"><a name="setHorStretch"></a>void QSizePolicy::setHorStretch ( <a href="qtglobal.html#uchar-typedef">uchar</a> <i>stretch</i> )</h3>
<p>Use <a href="qsizepolicy.html#setHorizontalStretch">setHorizontalStretch</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#horStretch">horStretch</a>().</p>
<h3 class="fn"><a name="setVerData"></a>void QSizePolicy::setVerData ( <a href="qsizepolicy.html#Policy-enum">Policy</a> <i>policy</i> )</h3>
<p>Use <a href="qsizepolicy.html#setVerticalPolicy">setVerticalPolicy</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#verData">verData</a>().</p>
<h3 class="fn"><a name="setVerStretch"></a>void QSizePolicy::setVerStretch ( <a href="qtglobal.html#uchar-typedef">uchar</a> <i>stretch</i> )</h3>
<p>Use <a href="qsizepolicy.html#setVerticalStretch">setVerticalStretch</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#verStretch">verStretch</a>().</p>
<h3 class="fn"><a name="verData"></a><a href="qsizepolicy.html#Policy-enum">Policy</a> QSizePolicy::verData () const</h3>
<p>Use <a href="qsizepolicy.html#verticalPolicy">verticalPolicy</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#setVerData">setVerData</a>().</p>
<h3 class="fn"><a name="verStretch"></a><a href="qtglobal.html#uint-typedef">uint</a> QSizePolicy::verStretch () const</h3>
<p>Use <a href="qsizepolicy.html#verticalStretch">verticalStretch</a>() instead.</p>
<p>See also <a href="qsizepolicy-qt3.html#setVerStretch">setVerStretch</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
